home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / MChess / MobileChess.jar / I / I.class (.txt)
Encoding:
Java Class File  |  2002-07-18  |  2.0 KB  |  68 lines

  1. package I;
  2.  
  3. import C.C;
  4. import J.B;
  5. import S.I;
  6. import Z.Z;
  7. import chess.MobileChess;
  8. import javax.microedition.lcdui.Command;
  9. import javax.microedition.lcdui.CommandListener;
  10. import javax.microedition.lcdui.Displayable;
  11. import javax.microedition.lcdui.Form;
  12. import javax.microedition.lcdui.StringItem;
  13.  
  14. // $FF: renamed from: I.I
  15. public class class_0 extends Form implements CommandListener, I {
  16.    private MobileChess addCommand;
  17.    private Displayable append;
  18.    private int setCommandListener;
  19.    private B.I setText;
  20.    // $FF: renamed from: I javax.microedition.lcdui.StringItem
  21.    private StringItem field_0 = new StringItem("Player name:", (String)null);
  22.    // $FF: renamed from: Z javax.microedition.lcdui.StringItem
  23.    private StringItem field_1 = new StringItem("Device type:", (String)null);
  24.    // $FF: renamed from: C javax.microedition.lcdui.Command
  25.    private Command field_2 = new Command("Accept", 1, 1);
  26.    // $FF: renamed from: B javax.microedition.lcdui.Command
  27.    private Command field_3 = new Command("Refuse", 2, 1);
  28.  
  29.    public class_0(MobileChess var1) {
  30.       super("Invitation came...");
  31.       this.addCommand = var1;
  32.       ((Displayable)this).addCommand(this.field_2);
  33.       ((Displayable)this).addCommand(this.field_3);
  34.       ((Form)this).append(this.field_0);
  35.       ((Form)this).append(this.field_1);
  36.       ((Displayable)this).setCommandListener(this);
  37.    }
  38.  
  39.    public final void commandAction(Command var1, Displayable var2) {
  40.       boolean var3 = false;
  41.       if (var1 == this.field_2) {
  42.          this.addCommand.I(new Z(this.addCommand, this.setText, this.setCommandListener));
  43.          var3 = true;
  44.       } else {
  45.          this.addCommand.Z().I(1);
  46.          this.addCommand.I(this.append);
  47.       }
  48.  
  49.       C var4 = new C(this.setCommandListener, var3);
  50.       this.addCommand.I().I(var4, MobileChess.B(), 54L);
  51.    }
  52.  
  53.    // $FF: renamed from: I (J.B) void
  54.    public final void method_0(B var1) {
  55.       if (this.addCommand.Z().B() != 2) {
  56.          this.addCommand.Z().I(2);
  57.          C.B var2 = (C.B)var1.I();
  58.          this.append = this.addCommand.C();
  59.          this.setCommandListener = var2.I();
  60.          this.setText = var2.C();
  61.          this.field_0.setText(this.setText.I());
  62.          this.field_1.setText(MobileChess.I[this.setText.C()]);
  63.          this.addCommand.I(this);
  64.       }
  65.  
  66.    }
  67. }
  68.